<%@page import="Entidades.VentaEnt"%>
<% 
    int actualizado = request.getAttribute("actualizado") == null ? -1 : Integer.parseInt(request.getAttribute("actualizado").toString());
    
    VentaEnt venta;
    venta = request.getAttribute("venta") != null ? (VentaEnt) request.getAttribute("venta") : null;
%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1"%>
<html >
    <head>

        <script type="text/javascript" src="js/tabber.js"></script>
        <link rel="stylesheet" href="css/example.css" TYPE="text/css" MEDIA="screen"/>
        <link rel="stylesheet" href="css/example-print.css" TYPE="text/css" MEDIA="print"/>
        <link rel="stylesheet" href="css/MenuPrincipal.css" TYPE="text/css" MEDIA="screen"/>
        <script type="text/javascript" src="js/general.js"></script>
        <script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
        <script type="text/javascript" src="js/Funciones.js"></script>
        <script type='text/javascript' src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"/>
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/jquery.fixedMenu.js"></script>
        <script type="text/jav ascript" src="js/general.js"></script>
        <link rel="stylesheet" type="text/css" href="css/fixedMenu_style2.css" />
        <link rel="stylesheet" href="css/style.css" />
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <link rel="stylesheet" href="css/jquery-ui.css" />
        <script type="text/javascript" src="js/jquery-1.9.1.js"></script>
        <script type="text/javascript" src="js/jquery.displaytag-ajax-1.2.js"></script>
        
        <link rel="stylesheet" type="text/css" href="css/styleMenu.css" />
        
        <script language="javaScript" type="text/javascript">
  
	  function inicio() {
		  window.location.href = "./ContenidoShow";
	  }
  
	</script>
    </head>

    <body>
        
        <div style="text-align: right;">
            
            <a href="./CerrarSesion" onclick="cerrarSession();" style="text-decoration:none; color: #f7db64;"/>Cerrar Sesion</a>
        </div>
      
      

        
        <div style="background: #362f2d">  
        
       </div>
        
        
       <div align="center" style="padding-top:30px ">  
           <%@include file="./Menu2.jsp" %>
            <FONT FACE="arial" size="6" COLOR="#282321" style="text-align: center">Ingresar Venta</FONT>
            
            
            	<form action="./VentaUp" method="POST">
                                
                               <%
                                    if (actualizado == 5) {
                                %>
                                <div style="text-align: center">
                                    
                                        <span style="color:#f6bd30;text-align: center">Los parametros con * son obligatorios</span>
                                   
                                </div>
                                <% }%>
                                
                                <%
                                    if (actualizado == 0) {
                                %>
                                <div style="text-align: center">
                                    
                                        <span style="color:#f6bd30;text-align: center">Error al guardar la venta</span>
                                   
                                </div>
                                <% }%>
                                
                                <%
                                if (actualizado == 1) {
                                %>
                                <div style="text-align: center">
                                    
                                        <span style="color:#f6bd30;text-align: center">Venta Creada Con Exito</span>
                                   
                                </div>
                                <% }%>
                                
		<div align="center" style="padding-top:30px ">
			<div class="tabla" >
                    
                    <div class="fila">

                        <div class="celda">
                            Valor:
                        </div>
                        <div class="celda">
                            <input id="valor" name="valor" type="text" value="<%venta.getValor(); %>">
                        </div>

                        <div class="celda">
                            Cliente:
                        </div>
                        <div class="celda">
                            <input id="cliente" name="cliente" type="text" value="<%venta.getCliente(); %>">
                        </div>	

			</div>
                </div>
			<div align="center" style="margin-top: 30px">
				<input type="submit" value="Guardar" width="30" height="30" class="button white">			
			</div>
		</div>
	 </form>
                                
       </div>

</body>

</html>
